import { defineConfig } from 'vite'
import { createHtmlPlugin } from 'vite-plugin-html'

export default defineConfig({
  plugins: [
    createHtmlPlugin({
      inject: {
        data: {
          entryFile: process.env.ENTRY || 'src/main.js' // 动态设置入口文件
        }
      }
    })
  ]
})
